package work.vcloud.baseinfo.controller;

import com.alibaba.fastjson.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import work.vcloud.frame.controller.BaseController;
import work.vcloud.frame.dao.OpenDao;
import work.vcloud.frame.vo.OutputVo;
import work.vcloud.frame.vo.PageVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@Scope("prototype")
public class ParameterController extends BaseController {

	@Value("${parameter.isClassMajorShow}")
	private String isClassMajorShow;

	/**
	 * 获取yml配置信息
	 */
	@RequestMapping("api/parameter.select")
	public OutputVo select() {
		try {
			Map<String, Object> map = new HashMap<>();
			map.put("parameter_isClassMajorShow",isClassMajorShow);
			return output(map);
		} catch (Exception e) {
			e.printStackTrace();
			return output("9999");
		}
	}

}
